package comtest.mongodb.mapper;

import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.data.mongodb.repository.query.MongoEntityInformation;
import org.springframework.data.mongodb.repository.support.SimpleMongoRepository;

import java.io.Serializable;

/**
 * @author: yxzhang23
 * @time: 2021/5/11
 */
public class DefaultMongoRepository<T, ID extends Serializable> extends SimpleMongoRepository<T, ID> {

    private final MongoOperations mongoOperations;
    private final Class<T> domainClass;

    public DefaultMongoRepository(MongoEntityInformation<T, ID> metadata, MongoOperations mongoOperations) {
        super(metadata, mongoOperations);
        this.domainClass = metadata.getJavaType();
        this.mongoOperations = mongoOperations;
    }




}
